package com.yrihr.wisdom.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.PastOrPresent;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName : RiverDto
 * @Description : 河道详情入参dto
 * @Author : wind
 * @Date: 2020-12-18 10:49
 * @Version 1.0
 */
@Data
public class RiverDto extends Page implements Serializable {
    private static final long serialVersionUID = -3399260365229720998L;

    /**
     * 区间id
     */
//    @Min(value = 1 , message = "区间编号必须大于1")
//    @Max(value = 13 , message = "区间编号不能大于13")
    private List<Long> interval;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @PastOrPresent
    private Date startTime;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @PastOrPresent
    private Date endTime;
}
